/* 清楚浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

/*公共样式*/
@mixin style {
    width: 248px;
    height: 80px;
    color: #fff;
    overflow: hidden;
    padding: 26px 34px 16px;
    border-radius: 18px;
    position: relative;
    display: inline-block;
}

@mixin text {
    font-size: 22px;
    font-weight: bold;
}

@mixin spanEle {
    display: block;
    width: 47px;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    color: #fec17e;
    margin-top: 11px;
}

@mixin imgEle {
    width: 125px;
    height: 125px;
    position: absolute;
    bottom: 0;
    right: 0;
}

/* 页头区域 */
#baseHead {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #fff;
    color: #877a73;
    font-size: 14px;
    position: relative;

    .wrapper {
        width: 1200px;
        height: 100%;
        margin: 0 auto;
        overflow: hidden;

        /* 右边logo区域 */
        .logo {
            height: 75px;
            margin: 50px 0 0 20px;
            float: left;
            overflow: hidden;

            a {
                color: #333;

                img {
                    width: 75px;
                    height: 75px;
                    float: left;
                }
            }

            .right {
                color: #43200c;
                margin: 8px 0 0 15px;
                text-align: center;
                float: left;

                h3 {
                    font-size: 28px;
                    font-weight: bold;
                    line-height: 40px;
                }

                span {
                    font-size: 12px;
                    line-height: 17px;
                    transform: scale(.8);
                    display: inline-block;
                }
            }
        }

        /* 中间搜索区域 */
        .search {
            width: 532px;
            height: 48px;
            display: flex;
            align-items: center;
            background-color: #fff;
            margin: 50px 2px 50px; 
            position: relative;
            float: left;

            h1 {
                font-size: 60px;
                font-weight: bold;
                color: #333;
                margin-left: 64px;
            }
        }

        /* 右边品牌保证区域 */
        .advantage {
            font-size: 10px;
            margin: 43px 180px 0 0; // 43px 86px 0 0
            float: right;

            ul {
                overflow: visible;
                list-style-type: none;

                li {
                    float: left;
                    position: relative;
                    margin-right: 25px;
                    width: 44px;
                    height: 60px;
                    text-align: center;
                }

                img {
                    display: inline-block;
                    width: 40px;
                }

                span {
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    font-size: 12px;
                    white-space: nowrap;
                    transform: translateX(-50%);
                }
            }
        }

        /* 用户信息区域 */
        #userinfor {
            font-size: 10px;
            margin: -60px 40px 0 0;
            float: right;
            height: 50px;

            img {
                width: 40px;
                height: 40px;
                border-radius: 20px;
                margin-right: 10px;
            }
        }
    }
}

/* 导航栏 */
#nav {
    width: 100%;
    height: 46px;
    color: #fff;
    margin: 0 auto;
    background-color: #43240c;

    ul {
        width: 1200px;
        height: 46px;
        margin: 0 auto;
        display: flex;
    }

    li {
        width: 220px;
        text-align: center;
        line-height: 46px;

        &:hover {
            color: #43240c;
            background-color: #fee44e;
        }
    }
}

// *******************************************

/*购物车*/
.container {
    width: 1000px;
    margin: 30px auto;

    .book-list {
        width: 100%;

        table {
            width: 100%;
            border: 1px solid #D0D0D0;

            tr {

                th {
                    border-bottom: 1px solid #D0D0D0;
                    text-align: center;
                    font-size:18px;
                    height: 40px;
                    line-height: 40px;

                }

                td {
                    border-bottom: 1px solid #D0D0D0;
                    text-align: center;
                    background-color: #FFFBF0;
                    height: 80px;
                    width: 200px;
                    vertical-align: middle;

                    .removebtn,.deletebtn{
                        display: inline-block;
                        color:black;
                        height: 30px;
                        line-height: 30px;
                        &:hover{
                            color:brown
                        }
                    }
        
                    img{
                        width: 60px;
                        height: 60px;

                    }
                    input[name='minus'],
                    input[name='plus'] {
                        width: 20px;
                        text-align: center;
                        background-color: #f1ebeb;
                        cursor: pointer;
                    }

                    input[name='amount'] {
                        width: 50px;
                        text-align: center;
                        cursor: pointer;
                    }

                }
                
            }
        }
    }

    h2 {
        text-align: right;
        font-size: 22px;
        margin-top: 20px;

        span {
            color: red;
            font-size: 22px;

        }
    }
}

// ****************************************************

/*回到顶部*/
#back-top {
    cursor: pointer;
    position: fixed;
    right: 50px;
    bottom: 314px;

    img {
        width: 60px;
        height: 60px;
    }
}

/*页脚*/
#footer {
    margin: 81px auto 0;

    .base-footer {
        width: 100%;
        height: 240px;
        background-color: #000;
        opacity: 0.7;
        color: #fff;
        position: relative;
        bottom: 0;
        font-family: PingFang-SC-Medium;
        margin-top: 81px;

        .footer-container {
            width: 1200px;
            height: 112px;
            margin: 0 auto;

            img {
                width: 112px;
                height: 112px;
                margin: 37px 19px 0 40px;
                float: left;
                border-radius: 20px;
            }

            .footer-content {
                display: inline-block;
                text-align: center;
                margin-top: 45px;
                margin-right: 444px;

                h1 {
                    font-size: 36px;
                    font-family: PingFangSC-Semibold;
                    font-weight: 600
                }

                p {
                    font-size: 18px;
                    font-weight: 500;
                    line-height: 25px;
                }
            }

            .about-us {
                margin-top: -56px;

                p {
                    font-size: 20px;
                    margin-left: 502px;

                    span {
                        margin: 0 8px;
                    }

                    a {
                        color: #fff;
                        text-decoration: none;
                    }
                }
            }

            .footer-buttom {
                text-align: center;
                margin-top: 88px;
                position: relative;

                .police-icon {
                    width: 22px;
                    height: 22px;
                    margin-top: 2px;
                    vertical-align: -5px;
                    position: absolute;
                    margin-left: -28px;
                }

                p {
                    font-size: 18px;
                    line-height: 25px;
                    display: inline-block;

                    a {
                        color: rgb(255, 255, 255)
                    }
                }
            }
        }
    }
}

/*安全认证lofo*/
#security {
    padding-bottom: 50px;
    display: block;
    text-align: center;
}